﻿using DataServer.CommonLib.Models.DataSource;
using Swimj.CommonLib.Base;
using Swimj.Core.DependencyInjection;

namespace DataServer.ApplicationLib.Services
{
    public interface IDataSourceService : IScopedDependency
    {
        Task<PaginatedResult<DataSourceInfoResponseDto>> QueryDataSourcesByPageAsync(DataSourceSearchRequestDto model);
    
        Task<Result<IList<DataSourceInfoResponseDto>>> QueryDataSourcesAsync(DataSourceSearchRequestDto model);
    
        Task<Result<DataSourceInfoResponseDto>> CreateDataSourceAsync(DataSourceEditRequestDto model);
    }
}